package com.miaoma.auto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_beracode_student")
public class Student {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id = 0L;
    private String studentNo = "";
    private String name = "";
    private String gender = "";
    private Integer age = null;
    private String className = "";
    private String major = "";
    private String grade = "";
    private String phone = null;
    private String email = null;
    private String address = null;
    private String avatar = null;
    private LocalDate enrollmentDate = LocalDate.now();
    private String status = "";
    private String remark = null;
    private LocalDateTime createdAt = LocalDateTime.now();
    private LocalDateTime updatedAt = LocalDateTime.now();
}